/**
 * 研究 JSON5
 *
 *  stringify
 *
 *  parse
 */

const json5 = require("json5");

const str = `
{
  // comment
  title: "JSON5 Example",
  owner: {
    name: "Tom Preston-Werner",
    organization: "GitHub",
    bio: "GitHub Cofounder & CEO Likes tater tots and beer.",
    dob: "1979-05-27T07:32:00.000Z",
  },
}

`;

// 使用 json5.parse() 将 json5 类型文件，转换成 json 文件
console.log(json5.parse(str));
